package svc

import (
	"api/internal/config"
	"github.com/zeromicro/go-zero/zrpc"
	"shenzhou_srv/shenzhouclient"
)

type ServiceContext struct {
	Config  config.Config
	Cartrpc shenzhouclient.Shenzhou
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:  c,
		Cartrpc: shenzhouclient.NewShenzhou(zrpc.MustNewClient(c.Cartrpc)),
	}
}
